package com.resourcestore.dao;

import java.util.List;

import com.resourcestore.dao.BaseDao;
import com.resourcestore.model.CourseCategory;
import com.resourcestore.model.CourseTeaClassFK;
import com.resourcestore.utils.tag.Pagination;

public class CourseTeaClassFKDao extends BaseDao {

	public List<CourseTeaClassFK> selectCourseTeaClassFKByTUN(
			CourseTeaClassFK courseTeaClassFK) {
		List<CourseTeaClassFK> list = this.queryForList(
				"selectCourseTeaClassFKByTUN", courseTeaClassFK);
		return list;
	}

	public List<CourseTeaClassFK> selectCourseTeaClassFKByCourseId(
			CourseTeaClassFK courseTeaClassFK) {
		List<CourseTeaClassFK> list = this.queryForList(
				"selectCourseTeaClassFKByCourseId", courseTeaClassFK);
		return list;
	}

	public List<CourseTeaClassFK> selectCourseTeaClassFK() {
		List<CourseTeaClassFK> list = this
				.queryForList("selectCourseTeaClassFK");
		return list;
	}

	public List<CourseTeaClassFK> selectCourseTeaClassFKPage(
			CourseTeaClassFK courseTeaClassFK, Pagination pagination) {
		List<CourseTeaClassFK> list = this.queryForPage(
				"selectCourseTeaClassFKPage", courseTeaClassFK, pagination);
		return list;
	}

	public int queryCourseTeaClassFKNum(CourseTeaClassFK courseTeaClassFK) {
		return this.queryNum("selectCourseTeaClassFKCount", courseTeaClassFK);
	}

	public CourseTeaClassFK selectCourseTeaClassFKById(
			CourseTeaClassFK courseTeaClassFK) {
		return (CourseTeaClassFK) this.queryForObject(
				"selectCourseTeaClassFKById", courseTeaClassFK);
	}
	
	public CourseTeaClassFK selectCourseTeaClassFKByFourCondition(
			CourseTeaClassFK courseTeaClassFK) {
		return (CourseTeaClassFK) this.queryForObject(
				"selectCourseTeaClassFKByFourCondition", courseTeaClassFK);
	}

	public void insertCourseTeaClassFK(CourseTeaClassFK courseTeaClassFK) {
		this.insert("insertCourseTeaClassFK", courseTeaClassFK);
	}

	public void updateCourseTeaClassFK(CourseTeaClassFK courseTeaClassFK) {
		this.update("updateCourseTeaClassFK", courseTeaClassFK);
	}

	public void deleteCourseTeaClassFK(CourseTeaClassFK courseTeaClassFK) {
		this.delete("deleteCourseTeaClassFK", courseTeaClassFK);
	}

	public void deleteCourseTeaClassFKByTUN(CourseTeaClassFK courseTeaClassFK) {
		this.delete("deleteCourseTeaClassFKByTUN", courseTeaClassFK);
	}

	public void deleteMoreCourseTeaClassFK(CourseTeaClassFK courseTeaClassFK) {
		this.delete("deleteMoreCourseTeaClassFK", courseTeaClassFK);
	}

}
